﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="GraduateInfoList.aspx.cs" Inherits="EmeployInfoList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table style="width: 100%">
        <tr>
            <td>
                <table style="width: 100%">
                    <tr>
                        <td class="style15" style="width: 192px">
                            <asp:Label ID="Label7" runat="server" Text="  搜索学生（请输入ID）：" CssClass="GraduateInfoListButton"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server" Width="87px" 
                                ontextchanged="TextBox2_TextChanged"></asp:TextBox>
                            <asp:Button ID="Button2" runat="server" BackColor="#A55129" ForeColor="Black" 
                                onclick="Button2_Click" style="margin-left: 31px" Text="确 认" Width="57px" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" Height="94px" Width="796px" 
                    AutoGenerateColumns="False" AutoGenerateDeleteButton="True" 
                    AutoGenerateSelectButton="True" BackColor="#DEBA84" BorderColor="#DEBA84" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="8" CellSpacing="2" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" AllowPaging="True"
                    onrowdeleted="GridView1_RowDeleted"
                    GridLines="None" AutoGenerateEditButton="True" 
                    >
                    <Columns>
                        <asp:BoundField DataField="GRA_ID" HeaderText="学号" />
                        <asp:BoundField DataField="GRA_NAME" HeaderText="姓名" />
                        <asp:BoundField DataField="GRA_SEX" HeaderText="性别" />
                        <asp:BoundField DataField="GRA_MAJOR" HeaderText="专业" />
                        <asp:BoundField DataField="GRA_EMAIL" HeaderText="Email" />
                    </Columns>
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FFF1D4" />
                    <SortedAscendingHeaderStyle BackColor="#B95C30" />
                    <SortedDescendingCellStyle BackColor="#F1E5CE" />
                    <SortedDescendingHeaderStyle BackColor="#93451F" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="Data Source=ACER-PC;Initial Catalog=graduate_manage;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="Select GRA_NAME,GRA_ID,GRA_SEX,GRA_MAJOR,GRA_EMAIL FROM  [INFO_GRADUATE]" 
                    DeleteCommand="DELETE From INFO_GRADUATE Where GRA_ID=@ID" 
                    ViewStateMode="Enabled">
                <DeleteParameters>
                    <asp:Parameter Name="ID" Type="string" DefaultValue="1" />
                </DeleteParameters>
                 </asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:graduate_manageConnectionString2 %>" 
                   ></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="Button1" runat="server" Text="插入学生信息" Height="31px" 
                    Width="117px" BackColor="#A55129" Font-Names="Forte" ForeColor="Black" 
                    style="margin-left: 0px" cssClass="GraduateInfoListButton" 
                    onclick="Button1_Click"/>
            </td>
        </tr>
    </table>
</asp:Content>

